<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="Content-Script-Type" content="text/javascript" />
		<meta http-equiv="Content-Style-Type" content="text/css" />
		<title>コントロールパネル</title>
		<link rel="stylesheet" href="./assets/styles/default.css" type="text/css" />
		<link rel="stylesheet" href="./assets/styles/importing.css" type="text/css" />
		<link type="text/css" href="./assets/styles/ui-lightness/jquery-ui-1.7.2.custom.css" rel="stylesheet" />
		<script src="assets/scripts/jquery-1.7.1.min.js" type="text/javascript"></script>
		<script src="assets/scripts/menu.js" type="text/javascript"></script>
		<script src="assets/scripts/table.js" type="text/javascript"></script>
		<script type="text/javascript" src="./tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
		<script type="text/javascript" src="./assets/scripts/editor.js"></script>
		<script type="text/javascript" src="./assets/scripts/ui/ui.core.js"></script>
		<script type="text/javascript" src="./assets/scripts/import.js"></script>
		<script type="text/javascript">
		$(function() {
			$('.message').fadeIn("slow");
			$('.text_date').datepicker({
				changeMonth: true,
				changeYear: true,
				dateFormat: 'yy/mm/dd'
			});
			$('#btn-save').click(function(){
				if( confirm('更新してよろしいですか？') ){
					document.fr.submit();
				}
			});
			$('.sort').change(function(){
				/*
				var thesort = $('input:radio[name="sort"]:checked').val() ;
				if (thesort == 1) {
						$('#tr_op4')['show']();
					} else {
						$('#fm [name=block_cd]').val("");
						$('#tr_op4')['hide']();
				}
				*/
			});
		});
		</script>

	</head>
	<body id="">
{{$menu}}
{{$logout}}
		<div id="container"><div class="wrapper">
			<h2>チラシ経費管理</h2>
			<ul class="submenu clearfix">
				<li><a href="mcost_flier_index.php">経費一覧・更新</a></li>
				<li><a href="mcost_flier_import.php">経費一括登録</a></li>
				<li>チラシ単価マスタ</li>
			</ul>
			<h3>チラシ単価マスタインポート</h3>
			<form  id="fmfile" name="fm" method="post"  action="mcost_flier_price_importing.php" enctype="multipart/form-data" >
				<table class="formTable">
					<tbody>
					<tr><th>※年度</th><td>
					{{ html_options id='year4' name='year4' options=$year4 selected=$forms.year4 }} 年{{ $err.year4 }}
					</td></tr>
						<tr>
							<th>※種類</th>
							<td>
{{ html_radios class="sort" name='sort' options=$sorts selected=$forms.sort separator='&nbsp;&nbsp;&nbsp;' }}
	<input type="hidden" name="hsort"  value = "{{ $forms.sort }}"/>
							</td>
						</tr>
						<tr>
							<th>※ファイル</th>
							<td>
								<input class="fileup" type="file" name="upfile" size="90" > <p class="error">{{ $err.file }}</p>
								<input type="hidden" name="isfilesubmit"  value = "1"/>
							</td>
						</tr>
					</tbody>
				</table>
				<p class="button">
					<button type="button" id="btn-import" class="submit"><span>アップロード</span></button>
				</p>
			</form>
		</div></div>
		{{ $import }}
		{{ $footer }}
	</body>
</html>